package com.linxiao.hrcrm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户黑名单对象 crm_blacklist
 * 
 * @author zhoudong
 * @date 2024-03-20
 */
public class CrmBlacklist extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 商户ID */
    @Excel(name = "商户ID")
    private Long mchId;

    /** 客户ID */
    @Excel(name = "客户ID")
    private Long customerId;

    /** 原因 */
    @Excel(name = "原因")
    private String reason;

    /** 是否有效 */
    @Excel(name = "是否有效")
    private String available;

    /** 移除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "移除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date removeTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMchId(Long mchId) 
    {
        this.mchId = mchId;
    }

    public Long getMchId() 
    {
        return mchId;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setAvailable(String available) 
    {
        this.available = available;
    }

    public String getAvailable() 
    {
        return available;
    }
    public void setRemoveTime(Date removeTime) 
    {
        this.removeTime = removeTime;
    }

    public Date getRemoveTime() 
    {
        return removeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mchId", getMchId())
            .append("customerId", getCustomerId())
            .append("reason", getReason())
            .append("updateBy", getUpdateBy())
            .append("available", getAvailable())
            .append("removeTime", getRemoveTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("remark", getRemark())
            .toString();
    }
}
